<?php

/**
 * Created by PhpStorm.
 * User: lwh
 * Date: 2017/7/21
 * Time: 9:49
 */
class Stage{
    public static $STAGE_EXPIRED = -1, $STAGE_ONGOING = 0, $STAGE_FINISHED = 1, $STAGE_IDLE = 2;
    private $id;
    private $taskId;
    private $name;
    private $description;
    private $deadline;
    private $reward;
    private $index;
    private $workerNum;
    private $aggregateMethod;
    private $aggregateResult;
    private $restrictions;
    private $duration;
    private $contract;
    private $status;

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param mixed $id
     */
    public function setId($id)
    {
        $this->id = $id;
    }

    /**
     * @return mixed
     */
    public function getTaskId()
    {
        return $this->taskId;
    }

    /**
     * @param mixed $taskId
     */
    public function setTaskId($taskId)
    {
        $this->taskId = $taskId;
    }

    /**
     * @return mixed
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param mixed $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * @return mixed
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * @param mixed $description
     */
    public function setDescription($description)
    {
        $this->description = $description;
    }

    /**
     * @return mixed
     */
    public function getDeadline()
    {
        return $this->deadline;
    }

    /**
     * @param mixed $deadline
     */
    public function setDeadline($deadline)
    {
        $this->deadline = $deadline;
    }

    /**
     * @return mixed
     */
    public function getReward()
    {
        return $this->reward;
    }

    /**
     * @param mixed $reward
     */
    public function setReward($reward)
    {
        $this->reward = $reward;
    }

    /**
     * @return mixed
     */
    public function getIndex()
    {
        return $this->index;
    }

    /**
     * @param mixed $index
     */
    public function setIndex($index)
    {
        $this->index = $index;
    }

    /**
     * @return mixed
     */
    public function getWorkerNum()
    {
        return $this->workerNum;
    }

    /**
     * @param mixed $workerNum
     */
    public function setWorkerNum($workerNum)
    {
        $this->workerNum = $workerNum;
    }

    /**
     * @return mixed
     */
    public function getAggregateMethod()
    {
        return $this->aggregateMethod;
    }

    /**
     * @param mixed $aggregateMethod
     */
    public function setAggregateMethod($aggregateMethod)
    {
        $this->aggregateMethod = $aggregateMethod;
    }

    /**
     * @return mixed
     */
    public function getAggregateResult()
    {
        return $this->aggregateResult;
    }

    /**
     * @param mixed $aggregateResult
     */
    public function setAggregateResult($aggregateResult)
    {
        $this->aggregateResult = $aggregateResult;
    }

    /**
     * @return mixed
     */
    public function getRestrictions()
    {
        return $this->restrictions;
    }

    /**
     * @param mixed $restrictions
     */
    public function setRestrictions($restrictions)
    {
        $this->restrictions = $restrictions;
    }

    /**
     * @return mixed
     */
    public function getDuration()
    {
        return $this->duration;
    }

    /**
     * @param mixed $duration
     */
    public function setDuration($duration)
    {
        $this->duration = $duration;
    }

    /**
     * @return mixed
     */
    public function getContract()
    {
        return $this->contract;
    }

    /**
     * @param mixed $contract
     */
    public function setContract($contract)
    {
        $this->contract = $contract;
    }

    /**
     * @return mixed
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * @param mixed $status
     */
    public function setStatus($status)
    {
        $this->status = $status;
    }

}